<template>
  <h1>El-下拉选框组件</h1>
  <el-select v-model="city" style="width: 20%" placeholder="选择城市">
    <el-option label="北京" value="北京"></el-option>
    <el-option label="长春" value="长春"></el-option>
    <el-option label="武汉" value="武汉"></el-option>
    <el-option label="郑州" value="郑州"></el-option>
  </el-select>
  <h4>选择城市：{{city}}</h4>
</template>

<script setup>
import {ref} from "vue";

const city = ref('');
</script>


<style scoped>

</style>